<?php
$ROOT_DIR_PATH = '../';
require_once($ROOT_DIR_PATH.'includes/includes.php');
session_start();
$dashBoardUrl = $ADMIN_BASE_HREF . "dashboard.php";
$loginUrl = $ADMIN_BASE_HREF . "login.php";
if ($GENOBJ->isLoggedIn()) {
    $GENOBJ->redirect($dashBoardUrl);
    exit;
}
$GENOBJ->redirect($loginUrl);
exit;
?>